package design.mode.currentLimit.com.xzg.ratelimiter.rule;

import design.mode.iterator.item1.List;

/**
 * /**
 *
 * @author famous on 2021/12/11
 */

public class RuleConfig {

  private List<AppRuleConfig> configs;

  public List<AppRuleConfig> getConfigs() {
    return configs;
  }

  public void setConfigs(List<AppRuleConfig> configs) {
    this.configs = configs;
  }

  public static class AppRuleConfig {

    private String appId;
    private List<ApiLimit> limits;


    public AppRuleConfig() {
    }

    public AppRuleConfig(String appId, List<ApiLimit> limits) {
      this.appId = appId;
      this.limits = limits;
    }

    public String getAppId() {
      return appId;
    }

    public void setAppId(String appId) {
      this.appId = appId;
    }

    public List<ApiLimit> getLimits() {
      return limits;
    }

    public void setLimits(List<ApiLimit> limits) {
      this.limits = limits;
    }
  }
}
